package cn.yiynx.example.service.impl;

import cn.yiynx.example.entity.Demo;
import cn.yiynx.example.entity.DemoReq;
import cn.yiynx.example.mapper.DemoMapper;
import cn.yiynx.example.service.DemoService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 示例 数据访问层接口实现类
 */
@Service
public class DemoServiceImpl extends BaseServiceImpl<DemoMapper, Demo> implements DemoService {

    @Autowired
    private DemoMapper demoMapper;

    @Override
    public IPage<Demo> exportDemoByParam(DemoReq req, IPage<Demo> page) {
        return demoMapper.exportDemoByParam(req,page);
    }

    @Override
    public IPage<Demo> exportDemoByParam2(DemoReq req, IPage<Demo> page) {
        return null;
    }
}
